#include "UdpServer.hpp"
#include <memory>
#include "Route.hpp"
using namespace std;
int main()
{
    EnableScreen();
    // string ip = "0";//一般设为0，bind了任意IP，只要端口是这个就都能接收到
    uint16_t port = glocalport;
    Route troute;
    func_t message_route = std::bind(&Route::Forward, &troute, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3);
    unique_ptr<UdpServer> usvr = make_unique<UdpServer>(message_route, port);
    usvr->InitServer();
    usvr->Start();
    return 0;
}